package com.lightboat.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lightboat.system.domain.CrmLogisticsAddress;

import java.util.List;

/**
 * 物流地址配置Service接口
 * 
 * @author lightboat
 * @date 2025-08-21
 */
public interface ICrmLogisticsAddressService  extends IService<CrmLogisticsAddress> {
    /**
     * 查询物流地址配置
     * 
     * @param id 物流地址配置主键
     * @return 物流地址配置
     */
    public CrmLogisticsAddress selectCrmLogisticsAddressById(Long id);

    /**
     * 查询物流地址配置列表
     * 
     * @param crmLogisticsAddress 物流地址配置
     * @return 物流地址配置集合
     */
    public List<CrmLogisticsAddress> selectCrmLogisticsAddressList(CrmLogisticsAddress crmLogisticsAddress);

    /**
     * 新增物流地址配置
     * 
     * @param crmLogisticsAddress 物流地址配置
     * @return 结果
     */
    public int insertCrmLogisticsAddress(CrmLogisticsAddress crmLogisticsAddress);

    /**
     * 修改物流地址配置
     * 
     * @param crmLogisticsAddress 物流地址配置
     * @return 结果
     */
    public int updateCrmLogisticsAddress(CrmLogisticsAddress crmLogisticsAddress);

    /**
     * 批量删除物流地址配置
     * 
     * @param ids 需要删除的物流地址配置主键集合
     * @return 结果
     */
    public int deleteCrmLogisticsAddressByIds(Long[] ids);

    /**
     * 删除物流地址配置信息
     * 
     * @param id 物流地址配置主键
     * @return 结果
     */
    public int deleteCrmLogisticsAddressById(Long id);


    List<CrmLogisticsAddress> getLogisticsAddress(String logisticsNo);

    void initByWeight();

    /**
     * 根据物流编号获取物流地址
     * @param logisticsNo
     * @return
     */
    CrmLogisticsAddress getLogisticsAddressByWeight(String logisticsNo);
}
